package com.dh.jarvis.Util;

import android.content.Context;
import android.net.Uri;

import com.dh.jarvis1.R;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.drawee.view.SimpleDraweeView;

/**
 * 图像工具类
 */
public class ImageUtil {


    private static int defaultRes = R.mipmap.img;

    public static void init(Context context) {
        Fresco.initialize(context);
    }

    public static void setImage(SimpleDraweeView draweeView, String imagePath) {
        Uri uri = Uri.parse(imagePath);
        draweeView.setImageURI(uri);
    }

}
